package com.google.cart.feign.fallback;

import com.google.cart.entity.GoodsEntity;
import com.google.cart.feign.ProductFeignService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ProductFeignServiceFallBack implements ProductFeignService {
    @Override
    public List<GoodsEntity> getCart() {
        return null;
    }

    @Override
    public String test(Integer id) {
        return null;
    }

    @Override
    public String t2(Integer id) {
        return "t2的ProductFeignServiceFallBack";
    }
}
